<?php
class doom_ctrl_response {

    public $contentType;

    public $charset;

    public $data;

    public function __construct() {

        $this->data = array();
    }

    public function add($key, $value) {

        $this->data[$key] = $value;
    }

    public function setContentType($cType = 'text/plain', $charset = 'UTF-8') {

        header('Content-type: ' . $cType . ';charset=' . $charset);
    }
}